package com.project.feign.client.impl;

import com.project.common.core.utils.exception.CustomException;
import com.project.common.core.utils.exception.RESP_CODE_ENUM;
import com.project.common.core.utils.exception.Result;
import com.project.feign.client.SystemServiceClient;
import com.project.feign.vo.CrmUserInfoVO;
import com.project.feign.vo.UserInfoVO;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * CRM用户feign客户fallback业务处理
 *
 * @Author: wyy
 * @Date: 2020-04-11 17:24
 */
@Component
public class SystemServiceClientImpl extends BaseClientImpl implements SystemServiceClient {

    /**
     * 保存直播0.1元购CRM用户
     *
     * @param crmUserInfoVo 企业用户VO对象
     * @return
     */
    @Override
    public Result<CrmUserInfoVO> savePrimeCrmUserInfo(CrmUserInfoVO crmUserInfoVo) {
        throw new CustomException(RESP_CODE_ENUM.MICRO_SERVICE_ERROR);
    }

    /**
     * 保存 无SC CRM用户
     *
     * @param crmUserInfoVo 企业用户VO对象
     * @return
     */
    @Override
    public Result<CrmUserInfoVO> saveNoSCCrmUserInfo(CrmUserInfoVO crmUserInfoVo) {
        throw new CustomException(RESP_CODE_ENUM.MICRO_SERVICE_ERROR);
    }

    /**
     * 根据用户ID查询用户信息
     *
     * @param userId 用户ID
     * @return
     */
    @Override
    public Result<UserInfoVO> getByUserId(String userId) {
        throw new CustomException(RESP_CODE_ENUM.MICRO_SERVICE_ERROR);
    }

    @Override
    public Result<UserInfoVO> getByOpenId(String openId) {
        throw new CustomException(RESP_CODE_ENUM.MICRO_SERVICE_ERROR);
    }

    @Override
    public Result updateUserInfo(UserInfoVO userInfoVO) {
        throw new CustomException(RESP_CODE_ENUM.MICRO_SERVICE_ERROR);
    }

    @Override
    public Result<CrmUserInfoVO> getCrmUserByPhone(String phone) {
        throw new CustomException(RESP_CODE_ENUM.MICRO_SERVICE_ERROR);
    }

    @Override
    public Result<List<UserInfoVO>> getByUserIds(List<String> userIds) {
        throw  new CustomException(RESP_CODE_ENUM.MICRO_SERVICE_ERROR);
    }

    @Override
    public Result<Integer> getNotReadMsg(String userId) {
        throw  new CustomException(RESP_CODE_ENUM.MICRO_SERVICE_ERROR);
    }
}
